//
//  ViewController.swift
//  XJExtension
//
//  Created by lishengbing on 10/30/2017.
//  Copyright (c) 2017 lishengbing. All rights reserved.
//

import UIKit
import XJExtension

class ViewController: UIViewController {

    
    fileprivate lazy var bgView: UIView = UIView()
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let b = "小白".transformToPinYin()
        print("转义=\(b)")
        
        bgView.backgroundColor = UIColor.green
        bgView.frame = CGRect(x: 50, y: 100, width: 300, height: 300)
        view.addSubview(bgView)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        
        //self.hudShowWithText(superView: bgView, title: "加载中...请稍等!")
        /*
        self.hudTextCallBack("开始接入") {
            print(" 开始跳转")
        }
        
        DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 2) {
            self.hudDismiss()
        }*/
    }
}

